package com.rdk.service;


import java.util.List;
import java.util.Map;

import com.rdk.utils.Page;



/**
 * Created by 2015/5/4.
 */
public interface BaseService<T> {
    void save(T t);
    void update(T t);
    void delete(Long id);
    T load(Long id);
    T load(String id);
    T load(Map<String,Object> maps);
    List<T> loadAll(Map<String,Object> maps);
    Integer queryPageCount(Map<String,Object> maps);
    void delete (String id);
    Page<T> queryPage(Integer currentIndex,Integer pageNum,Map<String,Object> maps);
    int deleteByPrimaryKey(String id);
    int deleteKeywordByRid(String rule_id);
    int deleteFodderByRid(String rule_id);
    List<Map<String, Object>> selectRuleById(String id);
    Map<String, Object> findKeywordById(String id);
    List<Map<String, Object>> selectRuleByType(Map<String, String> map);
    
    int insert(T t);

    int insertSelective(T t);

    T selectByPrimaryKey(String id);
    
    int updateByPrimaryKeySelective(T t);

    int updateByPrimaryKey(T t);

}
